#include<bits/stdc++.h>
using namespace std;
const int maxn=1e5+5;
int a[maxn];
bool attact[maxn];
bool attacted[maxn];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(0);
    int n;
    cin>>n;
    for(int i=1; i<=n; i++){
        cin>>a[i];
    }
    sort(a+1,a+n+1);
    for(int i=1; i<=n; i++){
        if(attact[i])continue;
        int t=upper_bound(a+1,a+n+1,a[i])-a;
        if(t!=n+1){
            if(attact[t]){
                while(attact[t] && t<=n)t++;
            }
            attacted[i]=true;
            attact[t]=true;
        }
    }
    int ans=0;
    for(int i=1; i<=n; i++){
        if(!attacted[i])ans++;
    }
    cout<<n-ans<<endl;
    return 0;
}
